<div id="userInfo">
  <div class="welcome">
    <% if current_user %>
      <div class="welcomeLinks">
        <%= link_to t("site.user.change"), edit_user_path(:id => current_user.id) %>
        <%= link_to t("site.user.logout"), logout_path %>
        <%= link_to(t("site.user.myorders"), orders_path(:time => @time, :town => @town)) if @current_roles.include?("user") %>
        <%= link_to(t("site.user.moderatorka"), qa_moderator_path(:status => "all")) if @current_roles.include?("moderator") %>
        <%= link_to(t("site.user.operatorka"), order_operator_path) if @current_roles.include?("operator") %>
        <%= link_to(t("site.user.adminka"), user_admin_path(:status => "all")) if @current_roles.include?("admin") %>
      </div>
    <% else %>
      <%= link_to t("site.user.login"), login_path(:time => @time, :town => @town) %>
      <%= link_to t("site.user.register"), new_user_path(:time => @time, :town => @town) %>
      <%= link_to t("site.user.forget"), forget_path(:time => @time, :town => @town) %>
    <% end %>
  </div>
</div>